package com.eff.android.lib.ui;

import com.eff.android.lib.R;

import android.app.ActionBar.LayoutParams;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.widget.Button;

public class EButton extends Button{

    public EButton(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		initMButton();
    }
    
    public EButton(Context context, AttributeSet attrs) {
		super(context, attrs);
		initMButton();
    }
    
    public EButton(Context context) {
		super(context);
		initMButton();
    }

    private void initMButton(){
		this.setBackgroundResource(R.drawable.btn_off);
		this.setTextColor(Color.BLACK);
		this.setTypeface(this.getTypeface(), Typeface.BOLD);
		LayoutParams params = new LayoutParams(70, 20);
		params.setMargins(70, 7, 0, 0);
		this.setLayoutParams(params);
    }
}
